<% @page_title = "Todo detail" %>
<h1><%=@page_title %></h1>

<!--<% for column in Todo.content_columns %>
<p>
  <b><%= column.human_name %>:</b>
  <% if column.human_name == 'Status' then %>
    <%=h @todo.friendly_status %>
  <%  else %>
    <%=h @todo.send(column.name) %>
  <%  end %>
</p>
<% end %>-->

<p><label id="todo_title">Title</label><br/>
  <%= @todo.send("title")  %></p>

<p><label for="todo_note">Note</label><br/>
<%= @todo.send("note")  %></p>

<p><label for="todo_status">Status</label><br/>
<%= @todo.friendly_status  %></p>

<p><label for="todo_briefcase">Link to file</label><br/>
<% unless @app_url_of_briefcase == nil %>
  <%= link_to 'Download here!', @app_url_of_briefcase  %>
<% end %>
</p>

<%= link_to 'Edit', edit_todo_path(@todo) %> |
<%= link_to 'Back', todos_path %>